package com.feiyun.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feiyun.model.entity.TempUser;
import com.feiyun.model.entity.User;
import com.feiyun.model.entity.UserPhoto;

/**
 * @ClassName UserMapper
 * @author: xingming
 * @Description:
 * @time 2023/03/12 17:25:42
 * @Version 1.0
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据userId更新头像路径
     *
     * @param userPhotoEntity 头像路径
     */
    void updateAvatarPathById(@Param("entity") UserPhoto userPhotoEntity);

    User selectByWxId(@Param("tempUser") TempUser tempUser);
}